package dataS.stack;

import java.util.Stack;

public class StackTest {
    public static void main(String[] args) {
        MyStack myStack=new MyStack(3);


        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        System.out.println(myStack.isFull());

        System.out.println(myStack.pop());
        System.out.println(myStack.isFull());

        System.out.println(myStack.peek());


        Stack<Integer> stack=new Stack<>();


    }
}
